package edu.cdtu.usb;

public class Computer {
    // 显示器
    private Monitor monitor;
    // 主板
    private MotherBoard motherBoard;
    // USB 接口
    private USB usb;
    // 其他设备...


    public Computer(Monitor monitor, MotherBoard motherBoard) {
        this.monitor = monitor;
        this.motherBoard = motherBoard;
    }

    public Computer(Monitor monitor, MotherBoard motherBoard, USB usb) {
        this.monitor = monitor;
        this.motherBoard = motherBoard;
        this.usb = usb;
    }

    public void updateUSBDevice(USB usb){
        this.usb = usb;
    }

    public void printDevices(){
        System.out.println("Monitor:"+this.monitor);
        System.out.println("MotherBoard:"+this.motherBoard);
        System.out.println("USB Device:"+this.usb);
    }
}
